<!doctype html>
<html>
<head>
    <meta charset=utf-8>
    <title></title>
    <meta name="robots" content="noindex,nofollow">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="<?=Web_Path?>packs/layui/css/layui.css">
    <link rel="stylesheet" href="<?=Web_Path?>packs/admin/css/font.css">
    <link rel="stylesheet" href="<?=Web_Path?>packs/admin/css/style.css">
    <script src="<?=Web_Path?>packs/js/jquery.min.js"></script>
    <script src="<?=Web_Path?>packs/layui/layui.js"></script>
    <script src="<?=Web_Path?>packs/admin/js/cscms.js"></script>
</head>
<body>
    
    <form class="layui-form layui-form-pane" action="<?=site_url('sys/save')?>" method="post" style="padding: 3%;width: 94%;">
        <div class="layui-form-item">
            <label class="layui-form-label"><?=L('tpl_e_01')?></label>
            <div class="layui-input-block">
                <input type="text" name="adminname" value="<?=$adminname?>" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label"><?=L('tpl_e_02')?></label>
            <div class="layui-input-block">
                <input type="text" name="adminpass" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label"><?=L('tpl_e_03')?></label>
            <div class="layui-input-block">
                <select name="sid">
                    <?php
                        $query = $this->db->query("SELECT id,name FROM ".CS_SqlPrefix."adminzu"); 
                        foreach ($query->result() as $row) {
                               $clas=($sid==$row->id)?' selected':'';
                               echo '<option value="'.$row->id.'"'.$clas.'>'.$row->name.'</option>';
                        }
                    ?>
                </select>
            </div>
        </div>
        <input name="id" type="hidden" value="<?=$id?>">
        <div class="layui-form-item">
            <div class="layui-input-block noborder">
                <button  class="layui-btn" lay-submit lay-filter="setting"><?=L('tpl_e_04')?></button>
                <button type="reset" class="layui-btn layui-btn-primary"><?=L('tpl_e_05')?></button>
            </div>
        </div>
    </form>
    <script type="text/javascript">
        cscms.init();
    </script>
</body>
</html>
